home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
bsindex1
/
part01
/
src
/
makefile
< prev
next >
Wrap
Makefile
|
1990-02-02
|
1KB
|
47 lines
#
# Lattice LKM makefile, for Lattice C V5.04
#
# BBSindex (C) Copyright Eddy Carroll, December 1989
#
CFLAGS = -cus -ms -j88i #-D3
OPT = -O
#BFLAGS = sc sd map ram:map addsym
BFLAGS = sc sd map ram:map nd
ASM = lc:asm
#START = lib:catch.o
START = tiny.o
.c.o:
lc $(CFLAGS) $(OPT) -Hsystem.sym $*.c
.a.o:
$(ASM) -isys:include/ -u $*.a
.n.doc:
nro >$*.doc -ms:an $*.n
.h.sym:
copy $*.h to ram:t/dummy.c
lc $(CFLAGS) -ph -o$*.sym ram:t/dummy.c
delete ram:t/dummy.c
#
# Makefile dependencies
#
OBJS = bbsindex.o checkfiles.o command.o expression.o format.o sort.o
all: bbsindex
bbsindex: $(OBJS) tiny.o
blink from $(START) $(OBJS) to bbsindex $(BFLAGS) lib lib:lc.lib
bbsindex.doc: bbsindex.n
system.sym: system.h
bbsindex.o: bbsindex.c system.sym bbsindex.h bbs.h
checkfiles.o: checkfiles.c system.sym bbsindex.h bbs.h
command.o: command.c system.sym bbsindex.h bbs.h
expression.o: expression.c system.sym bbsindex.h bbs.h
format.o: format.c system.sym bbsindex.h bbs.h
sort.o: sort.c system.sym bbsindex.h bbs.h
tiny.o: tiny.a